package com.njtech.pet.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author lxj
 * Date:2020-03-08 16:37
 * Description:用户类
 */
public class User implements Serializable {
    public Integer id;
    public String username;
    public String headUrl;
    public Date createDate;
    public String pwd;
    public String sex;
    public Integer credit;
    public String phone;
    public String state;
    public Date updateDate;
    public Integer level;
    public Date renewal;
    public Date due;

    public String role;

    public User() {
    }

    public User(Integer id, String username, String headUrl, Date createDate, String pwd, String sex, Integer credit, String phone, String state, Date updateDate, Integer level, Date renewal, Date due, String role) {
        this.id = id;
        this.username = username;
        this.headUrl = headUrl;
        this.createDate = createDate;
        this.pwd = pwd;
        this.sex = sex;
        this.credit = credit;
        this.phone = phone;
        this.state = state;
        this.updateDate = updateDate;
        this.level = level;
        this.renewal = renewal;
        this.due = due;
        this.role = role;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", headUrl='" + headUrl + '\'' +
                ", createDate=" + createDate +
                ", password='" + pwd + '\'' +
                ", sex='" + sex + '\'' +
                ", credit=" + credit +
                ", phone='" + phone + '\'' +
                ", state='" + state + '\'' +
                ", updateDate=" + updateDate +
                ", level=" + level +
                ", renewal=" + renewal +
                ", due=" + due +
                ", role='" + role + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String password) {
        this.pwd = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Date getRenewal() {
        return renewal;
    }

    public void setRenewal(Date renewal) {
        this.renewal = renewal;
    }

    public Date getDue() {
        return due;
    }

    public void setDue(Date due) {
        this.due = due;
    }
}
